package com.xiaoc.bulldozer.common.model;

import java.io.Serializable;

import com.xiaoc.bulldozer.common.Constant;

/**
 * 微信用户表(核销小程序)
 *
 * @author Danfo Yam
 *
 * @date 2018-09-06 13:29:52
 */
public class ConvertWeixinUser implements Serializable {
    
    private static final long serialVersionUID = 1L;
    

    /**
     * 自增ID
     */
    private Integer id;

    /**
     * 微信用户ID
     */
    private String openId;

    /**
     * union ID
     */
    private String unionId;

    /**
     * 微信用户昵称
     */
    private String nickName;

    /**
     * 性别
     */
    private String gender;

    /**
     * 市
     */
    private String city;

    /**
     * 省
     */
    private String province;

    /**
     * 国家
     */
    private String country;

    /**
     * 头像
     */
    private String avatarUrl;

    /**
     * 微信定位城市
     */
    private String locationCity;

    /**
     * 微信定位地址
     */
    private String locationAddress;

    /**
     * 状态 1为可用, 0为禁用
     */
    private Integer status;

    /**
     * 创建时间
     */
    private Long createTime;

    /**
     * 修改时间
     */
    private Long updateTime;

    /**
     * 对应tb_weixin_user表主键，用于小程序间信息关联
     */
    private Integer userIdRelate;

    /**
     * 手机号
     */
    private String phoneNumber;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public String getLocationCity() {
        return locationCity;
    }

    public void setLocationCity(String locationCity) {
        this.locationCity = locationCity;
    }

    public String getLocationAddress() {
        return locationAddress;
    }

    public void setLocationAddress(String locationAddress) {
        this.locationAddress = locationAddress;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getUserIdRelate() {
        return userIdRelate;
    }

    public void setUserIdRelate(Integer userIdRelate) {
        this.userIdRelate = userIdRelate;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public boolean isEnable() {
        return this.status != null && this.status == Constant.ENABLE;
    }
}
